#include <bits/stdc++.h>
using namespace std;
int main() {
    char a, b, c;
    cin >> a >> b >> c;
    cout << c << b << a;
    return 0;
}